#include <iostream>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <thread>

using namespace std;

class Person
{
private:
    /* data */
public:
    Person()
    {
        cout << "调用了无参构造函数" << endl;
    };
    ~Person()
    {
        cout << "调用了析构造函数" << endl;
    };
};

// Person::Person(/* args */)
// {
// }

// Person::~Person()
// {
// }

void doing()
{
    cout << "doing 函数开始" << endl;
    Person ps;
    for (size_t i = 0; i < 10; i++)
    {
        this_thread::sleep_for(chrono::microseconds(1));
        
        cout<<"运行次数："<<i<<endl;
        
    }
    
    cout << "doing 函数结束" << endl;
}

int main(int argc, char **argv)
{

    cout << "main 函数开始" << endl;

    doing();
    cout << "main 函数结束" << endl;

    return 0;
}